Skip to content

feat(iam): add user login tracking fields#506

Open
OscarLlamas6 wants to merge 2 commits intomainfrom
feat/add-user-login-tracking
Open

feat(iam): add user login tracking fields#506
OscarLlamas6 wants to merge 2 commits intomainfrom
feat/add-user-login-tracking

Conversation

@OscarLlamas6
Copy link
Contributor

Add LastLoginPerProvider map and LastTokenIntrospection timestamp to User CR status.

  • LastLoginPerProvider: tracks last login timestamp per identity provider (github, google) Updated by auth provider on idpintent.succeeded events (actual IDP logins only)

  • LastTokenIntrospection: tracks last successful token validation timestamp Updated by authentication webhook on every token introspection (includes refreshes) Provides more frequent activity tracking than login events

These fields enable the staff portal to display user login history and last activity.

Needed for #471

Add LastLoginPerProvider map and LastTokenIntrospection timestamp to User CR status.

- LastLoginPerProvider: tracks last login timestamp per identity provider (github, google)
  Updated by auth provider on idpintent.succeeded events (actual IDP logins only)

- LastTokenIntrospection: tracks last successful token validation timestamp
  Updated by authentication webhook on every token introspection (includes refreshes)
  Provides more frequent activity tracking than login events

These fields enable the staff portal to display user login history and last activity.

Closes: datum-cloud/staff-portal#282
@OscarLlamas6 OscarLlamas6 self-assigned this Feb 26, 2026
@joggrbot
Copy link
Contributor

joggrbot bot commented Feb 26, 2026

📝 Documentation Analysis

All docs are up to date! 🎉


✅ Latest commit analyzed: 2196fd5 | Powered by Joggr

Add documentation for lastLoginPerProvider and lastTokenIntrospection
status fields in the User resource API reference.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant